{% extends 'rango/base.html' %}

{% block title %}Add category{% endblock %}

{% block body_block %}
    <h1>Add a Category</h1>
    <form id="category_form" method="post" >
        {% csrf_token %}
        {% for hidden in form.hidden_fields %}
            {{ hidden }}
        {% endfor %}
        
        {% for field in form.visible_fields %}
            {{ field.error }}
            {{ field.help_text }}
            {{ field }}
        {% endfor %}
        
        <input type="submit" name="submit" value="Create Category" />
    </form>
{% endblock %}
